import Vue from 'vue';
import VueRouter from 'vue-router'

Vue.use(VueRouter);

export default new VueRouter({
    base: window.__POWERED_BY_QIANKUN__ ? '/subMain/sub-threeJs' : '/',
    mode: 'history',
    routes: [{
        path: '/', redirect: '/baseFactor'
    },{
        name: 'baseFactor',
        path: '/baseFactor',
        component: () => import('./pages/baseFactor/factor.vue')
    }, {
        name: 'fonts',
        path: '/fonts',
        component: () => import('./pages/baseFactor/fonts.vue')
    }, {
        name: 'chess',
        path: '/chess',
        component: () => import('./pages/baseFactor/chess.vue')
    }, {
        name: 'lightShadow',
        path: '/lightShadow',
        component: () => import('./pages/baseFactor/lightShadow.vue')
    }, {
        name: 'animationBall',
        path: '/animationBall',
        component: () => import('./pages/baseFactor/animationBall.vue')
    }]
})